<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>对象</title>
</head>

<body>
    <script>
        let person = {
            name: "小明",
            "age": 17,
            "sex": "男"
        };
        console.log(person.name);
        console.log(person.age);
        console.log(person["age"]);
        console.log(person.sex);
        console.log(person["sex"]);
        var car = {
            manycars: {
                a: "audi",
                "b": "bmw"
            },
            7: "VW"
        };
        console.log(car.manycars.a);
        console.log(car.manycars.b);
        console.log(car[7])
    </script>
</body>

</html>